package com.lsege.mapper.backstage;

import com.lsege.entity.backstage.Bike;
import com.lsege.entity.backstage.VoBike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by lsd on 2017-06-27.
 */
@Mapper
@Repository(value = "BikeMapper")
public interface BikeMapper {
    void addBikeInfo(Bike bike);
    Long selectBikeCode(@Param("bikeCode") String bikeCode);
    List<VoBike> getBikeList();
    Long getBikeListNum();
    void deleteBike(@Param("bicycleCode")String bicycleCode);
    List<VoBike> getBikeByCity(VoBike voBike);
    Long getBikeByCityCount(VoBike voBike);
    List<VoBike> getBikeByAccount(VoBike voBike);
    Long getBikeByAccountCount(VoBike voBike);
}
